<!DOCTYPE html>
<html>
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" /> 
  <link rel="shortcut icon" href="https://exp-blog.com/favicon.png" /> 
  <meta name="author" content="EXP: www.exp-blog.com" /> 
  <title>眈眈探求 | 易语言代码解析器</title> 
  <meta name="keywords" content="易语言代码解析器" /> 
  <link rel="stylesheet" type="text/css" href="../../base/css/bootstrap.min.css" /> 
  <link rel="stylesheet" type="text/css" href="../../base/css/font-awesome.css" /> 
  <script type="text/javascript" src="../../base/js/jquery.min.js"></script> 
  <script type="text/javascript" src="../../base/js/clipboard.min.js"></script> 
  <script type="text/javascript" src="../../base/js/bootstrap.min.js"></script> 
  <script type="text/javascript" src="../../base/css/layer/layer.js"></script> 
  <script type="text/javascript" src="../../base/js/main.js"></script> 
  <link rel="stylesheet" type="text/css" href="../../base/css/base.css" /> 
 </head> 
 <body> 
  <link rel="stylesheet" id="highlight-css" href="css/highlight.css" type="text/css" media="all" /> 
  <link rel="stylesheet" id="dw-css" href="css/dw.css" type="text/css" media="all" /> 
  <script type="text/javascript" src="js/slides.js"></script> 
  <script type="text/javascript" src="js/jquery.qrcode.min.js"></script> 
  <script type="text/javascript" src="js/wow.js"></script> 
  <script type="text/javascript" src="js/jquery-ias.js"></script> 
  <script type="text/javascript" src="js/jquery.lazyload.js"></script> 
  <script type="text/javascript" src="js/tipso.js"></script> 
  <script type="text/javascript" src="js/script.js"></script> 
  <script type="text/javascript" src="js/flexisel.js"></script> 
  <script type="text/javascript" src="js/fancybox.js"></script> 
  <script type="text/javascript" src="js/comments-ajax-qt.js"></script> 
  <link rel="stylesheet" id="style-css" href="css/style.css" type="text/css" /> 
  <link rel="stylesheet" href="css/ecode.css" type="text/css" /> 
  <script type="text/javascript" src="js/ecode.js"></script> 
  <style>
		#codeshow{overflow:hidden;width:100%;float:left;clear:left;margin-top:20px;}
	</style> 
  <script type="text/javascript">
		function run()
		{
			document.getElementById("codeshow_ecode_1").innerHTML=document.getElementById("code").value
			trans("codeshow");
		}
		window.onload=run;
	</script> 
	
  <div class="container clearfix"> 
   <div class="panel panel-default"> 
   	
    <div class="panel-heading"> 
     <b>易语言代码解析器</b> 
     <small> - 代码高亮</small> 
    </div> 
    
    <div id="content" class="panel-body site-content"> 
     <div class="row"> 
      <div> 
       <textarea id="code" class="form-control" rows="20">.版本 2

.子程序 GetProcessHandle, 整数型
.参数 lpProcessName, 文本型
.局部变量 hSnapShot, 整数型
.局部变量 dwRet, 整数型
.局部变量 prHandle, 整数型
.局部变量 pe32, PROCESSENTRY32

hSnapShot ＝ CreateToolhelp32Snapshot (#TH32CS_SNAPALL, 0)
.如果真 (hSnapShot ＝ 0)
    信息框 (“EXP | http://exp-blog.com”, 0, )
    返回 (dwRet)
.如果真结束
pe32.dwSize ＝ 1024
prHandle ＝ Process32First (hSnapShot, pe32)
.判断循环首 (prHandle ≠ 0)
    .判断开始 (到文本 (pe32.szExeFile) ＝ lpProcessName)
        dwRet ＝ pe32.th32ProcessID
        跳出循环 ()
    .默认
        prHandle ＝ Process32Next (hSnapShot, pe32)
    .判断结束

.判断循环尾 ()
CloseHandle (hSnapShot)
返回 (dwRet)</textarea> 
      </div> 
     </div> 
     <br /> 
     <input class="btn btn-success" type="button" value="解析代码" onclick="javascript:run()" /> 
     <div id="codeshow"> 
      <div id="codeshow_ecode_1"></div> 
     </div> 
    </div> 
    
   </div> 
  </div>  
 </body>
</html>